﻿<%@ Page Title="" Language="C#" MasterPageFile="Admin.Master" AutoEventWireup="true"
    CodeBehind="SendEmail.aspx.cs" Inherits="Photography.Admin.SendEmail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:LinqDataSource ID="ContactsDataSource" runat="server" ContextTypeName="Photography.App_Data.PhotographyDataContext"
        OnSelecting="GetContacts" >
    </asp:LinqDataSource>

    <asp:Label runat="server" ID="lblSuccessful" Visible="false" >Sent Successfully</asp:Label>
    Subject:
    <asp:TextBox ID="txtSubject" runat="server" Width="400px"></asp:TextBox>
    <br />
    To:
    <asp:CheckBoxList ID="lstContacts" runat="server" 
        DataSourceID="ContactsDataSource" DataTextField="Name" DataValueField="Email" 
        RepeatColumns="5" Width="832px">
    </asp:CheckBoxList>
    <asp:Button ID="btnSelectAll" runat="server" Text="Select All" 
            onclick="btnSelectAll_Click" />
    <asp:Button ID="btnDeselectAll" runat="server" Text="Deselect All" 
            onclick="btnDeselectAll_Click" />
    <asp:Button ID="btnAdd" runat="server" Text="Add" />
    <asp:Button ID="btnDelete" runat="server" Text="Delete" />
    <%=Email.BodyEmailTopHtml %>
    <asp:TextBox ID="txtEmailBody" runat="server" TextMode="MultiLine" Height="239px"
        Width="832px"></asp:TextBox>
    <br />
    <asp:Button ID="btnSubmit" runat="server" Text="Send Email" OnClick="btnSubmit_Click" />
    <%=Email.BodyEmailBottomHtml %>
</asp:Content>
